<template>
  <div class="left-container">
    <h2>Left组件</h2>
    <button @click="getInfo">发起GET请求</button>
  </div>
</template>

<script>
// import axios from 'axios'
export default {
  methods: {
    async getInfo () {
      const { data: res } = await this.$http.get('/api/get')
      console.log(res)
    }
  }
}
</script>

<style lang="less" scoped>
.left-container {
  background-color: orange;
  min-height: 200px;
  flex: 1;
}
</style>
